package com.ruoyi.oa.service;

import com.ruoyi.oa.domain.OaFinanceTravel;
import com.ruoyi.oa.domain.vo.OaFinanceTravelVo;
import com.ruoyi.oa.domain.bo.OaFinanceTravelBo;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.core.domain.PageQuery;
import com.ruoyi.oa.domain.vo.OaFinanceTripApplyVo;
import com.ruoyi.oa.domain.vo.OaProjectVo;

import java.util.Collection;
import java.util.List;

/**
 * 差旅费Service接口
 *
 * @author wangxq
 * @date 2023-05-18
 */
public interface IOaFinanceTravelService {

    /**
     * 查询差旅费
     */
    OaFinanceTravelVo queryById(String id);

    /**
     * 查询差旅费列表
     */
    TableDataInfo<OaFinanceTravelVo> queryPageList(OaFinanceTravelBo bo, PageQuery pageQuery);

    /**
     * 查询差旅费列表
     */
    List<OaFinanceTravelVo> queryList(OaFinanceTravelBo bo);

    /**
     * 新增差旅费
     */
    OaFinanceTravelBo insertByBo(OaFinanceTravelBo bo);

    /**
     * 修改差旅费
     */
    OaFinanceTravel updateByBo(OaFinanceTravelBo bo);

    /**
     * 校验并批量删除差旅费信息
     */
    Boolean deleteWithValidByIds(Collection<String> ids, Boolean isValid);


    /**
     * 获取没有差旅费流程的项目信息
     * @return
     */
    List<OaProjectVo> getProjectList();

    /**
     * 通过项目名称查询差旅费申请
     * @param projectName
     * @return
     */
    public OaFinanceTravelVo queryByProjectName(String projectName);
}
